package cn.fsd.query.substation;

import cn.fsd.query.BaseQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class WorkloadQuery extends BaseQuery {

  private String query;
  private String station_id = "1";

  /**
   * 这里的startDate和endDate查询的是送达日期
   */
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
  private Date startDate;

  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
  private Date endDate;
}
